package com.jj.service.room;

import com.jj.service.player.Player;

/**
 * Copyrights: QidianGroup@JJ
 *
 * @author: LuHan
 * @date: 2018/1/15, 16:15
 */
public interface RoomManager {
    Room createRoom(long playerA, long playerB);
    void removeRoom(Room room);

    /**
     * 用户离开
     * @param player
     */
    void leave(Player player);

    /**
     *
     * @param uid
     */
    void leave(Long uid);

    /**
     * 查找player所在的room
     * @param player
     * @return
     */
    Room findPlayerRoom(Player player);
}
